--[[ Multiwaffentrainer by Lyxix ]]--







local Trainerid = TRAINER_ID

function Class_main_menu(pUnit, player)
   pUnit:GossipCreateMenu(3543, player, 0)
   pUnit:GossipMenuAddItem(7, "Waffen Skills lernen", 1, 0)
   pUnit:GossipSendMenu(player)
end


function Class_on_gossip_talk(pUnit, event, player)
   Class_main_menu(pUnit, player)
end


function Class_on_gossip_select(pUnit, event, player, id, intid, code)

if(intid == 1) then
		pUnit:SendChatMessage(12, 0, "Willkommen, $N! Ich werde dir alle Waffenf\195\164higkeiten lernen.")
   		player:LearnSpell(15984)
   		player:LearnSpell(15985)
   		player:LearnSpell(15988)
   		player:LearnSpell(15992)
   		player:LearnSpell(15994)
   		player:LearnSpell(15997)
   		player:LearnSpell(1847)
   		player:LearnSpell(15983)
   		player:LearnSpell(15991)
   		player:LearnSpell(15986)
   		player:LearnSpell(15987)
   		player:LearnSpell(15989)
   		player:LearnSpell(15996)
		player:GossipComplete()
end
end

RegisterUnitGossipEvent(TRAINER_ID, 1, "Class_on_gossip_talk")
RegisterUnitGossipEvent(TRAINER_ID, 2, "Class_on_gossip_select")